package io.renren.modules.sys.dao;

import io.renren.modules.sys.entity.DatabaseinfoEntity;
import io.renren.modules.sys.entity.TableInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhangfn
 * @date 2020-06-05 10:55:20
 */
@Mapper
public interface TableInfoDao extends BaseMapper<TableInfoEntity> {


    /**
     * @param id
     * @param count
     * @return
     */
    int upCount(@Param("id") String id, @Param("count") int count);

    List<TableInfoEntity> getTableByDbid(@Param("dbid") String dbid);

    int delTables(@Param("dbid") String dbid);


}
